home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / PUSHIT.BAT < prev    next >
DOS Batch File  |  1992-04-14  |  797b  |  29 lines

  1. @echo off
  2. echo.
  3. echo ┌───────────────────────────────────────────────────┐
  4. echo │ An alternative pushing the directory              │
  5. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Apr-92 │
  6. echo └───────────────────────────────────────────────────┘
  7. echo.
  8.  
  9. rem Check that c:\bat\cd.aux is available
  10. if exist c:\bat\cd.aux goto _label1
  11. echo Auxilary file c:\bat\cd.aux not found
  12. goto _out
  13.  
  14. rem Check that you have drive R:\ available
  15. rem If not, customize the r:\ below
  16. :_label1
  17. if exist r:\nul goto _label2
  18. echo Directory R:\ not available, read the batch rems
  19.  
  20. :_label2
  21. cd > tmp$$$
  22. copy c:\bat\cd.aux + tmp$$$ r:\popit.bat > nul
  23. del tmp$$$*
  24. echo To restore the pushed directory write R:\POPIT
  25. echo.
  26. echo POPIT.BAT does not work between different drives
  27.  
  28. :_out
  29.